package com.nanrui.mutualinductor.ui.page;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.batman.baselibrary.base.BaseActivity;
import com.batman.baselibrary.utils.TimeUtils;
import com.nanrui.mutualinductor.R;
import com.ui.widget.UINavigationView;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

import butterknife.BindView;
import butterknife.OnClick;

public class CTCheckArbitraryActivity extends BaseActivity {

    @BindView(R.id.uinv)
    UINavigationView mUinv;
    @BindView(R.id.et_person)
    EditText mEtPerson;
    @BindView(R.id.et_property_id)
    EditText mEtPropertyId;
    @BindView(R.id.et_rated_electricity)
    EditText mEtRatedElectricity;
    @BindView(R.id.tv_rated_electricity_two)
    TextView mTvRatedElectricityTwo;
    @BindView(R.id.et_rated_load)
    EditText mEtRatedLoad;
    @BindView(R.id.tv_floor_load)
    EditText mTvFloorLoad;
    @BindView(R.id.tv_level)
    TextView mTvLevel;
    @BindView(R.id.tv_coso)
    EditText mTvCoso;
    @BindView(R.id.tv_f)
    TextView mTvF;
    @BindView(R.id.tv_u)
    TextView mTvU;
    @BindView(R.id.tv_i)
    TextView mTvI;
    @BindView(R.id.tv_r)
    TextView mTvR;
    @BindView(R.id.tv_percent)
    EditText mTvPercent;

    @BindView(R.id.tv_date)
    TextView mTvDate;
    @BindView(R.id.btn_measure)
    Button mBtnMeasure;
    @BindView(R.id.btn_save)
    Button mBtnSave;
    @BindView(R.id.btn_exit)
    Button mBtnExit;

    @BindView(R.id.tv_full_differ_bi)
    TextView mTvFullDifferBi;
    @BindView(R.id.tv_full_differ_jiao)
    TextView mTvFullDifferJiao;
    @BindView(R.id.tv_differ_bi)
    TextView mTvDifferBi;
    @BindView(R.id.tv_differ_jiao)
    TextView mTvDifferJiao;

    @Override
    protected boolean isRegisterEventBus() {
        return false;
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_ct_check_arbitrary;
    }

    @Override
    public void initViews() {
        mUinv.setNavigationTitle("任意点测试");
        mTvDate.setText("时间：" + TimeUtils.date2String(new Date(), new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault())));
    }

    @Override
    public void loadData(Bundle savedInstanceState) {

    }

    @OnClick({R.id.btn_measure, R.id.btn_save, R.id.btn_exit})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_measure:
                break;
            case R.id.btn_save:
                break;
            case R.id.btn_exit:
                finish();
                break;
        }
    }
}
